
const register_form = new Vue({
    el: "#register_form",
    data: {
        username:'',
        password:'',
        checkInfo:'',
        flag:null,
        success_show:false,
        error_show:false
    },
    methods:{
        check_username(){
            axios.get(PATH+"/user/checkUsername?username="+this.username)
                .then((resp)=> {
                    if(resp.data.boolean==false){
                        this.checkInfo="用户名已存在"
                        this.flag="disabled"
                    }else{
                        this.checkInfo=""
                        this.flag=null
                    }
                })
        }
    }
})